package com.qaml.mes.device.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qaml.mes.device.dao.TaskQuartzJob;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName SysQuartzJobMapper
 * @Description TODO
 * @Author leikai
 * @Date 2023/10/20 13:21
 * @Version 1.0
 */
public interface SysQuartzJobMapper extends BaseMapper<TaskQuartzJob> {
    /**
     * 根据生产计划编号查询最新的一条数据
     * @param planIds
     * @return
     */
    List<TaskQuartzJob> getListByPlanIdsLast(@Param("planIds") List<String> planIds);

    TaskQuartzJob getByPlanId(@Param("planId") String planId);
}